﻿using System;
using System.Runtime.InteropServices;

namespace RayDen.Library.Core.Primitives
{
    [Serializable]
    [StructLayout(LayoutKind.Sequential)]
    public struct AABBInfo
    {
        public Point Min, Max;

        public AABBInfo(AABB bb)
        {
            this.Min = bb.Min;
            this.Max = bb.Max;
        }

        public AABBInfo(ref Point p1, ref Point p2)
        {
            this.Min = p1;
            this.Max = p2;
        }

        public AABBInfo(Point p1, Point p2)
        {
            this.Min = p1;
            this.Max = p2;
        }

    }
}